﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PaginaMaestra.Master" AutoEventWireup="true" CodeBehind="CursosD.aspx.cs" Inherits="UI.Web.Formulario_web12" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Contenedor" runat="server">
    <asp:Panel ID="Panel1" runat="server">
        <asp:GridView ID="dgvCursos" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" onselectedindexchanged="dgvCursos_SelectedIndexChanged">
            <Columns>
                <asp:BoundField AccessibleHeaderText="ID" DataField="ID" HeaderText="ID" />
                <asp:BoundField AccessibleHeaderText="Materia" DataField="Materia" 
                    HeaderText="Materia" />
                <asp:BoundField AccessibleHeaderText="Comision" DataField="Comision" 
                    HeaderText="Comision" />
                <asp:BoundField AccessibleHeaderText="Anio" DataField="Anio" HeaderText="Año" />
                <asp:BoundField AccessibleHeaderText="Cupo" DataField="Cupo" 
                    HeaderText="Cupo" />
                <asp:CommandField ShowSelectButton="True" />
            </Columns>
        </asp:GridView>
        <br />
        <br />
        <asp:Button ID="btnNuevo" runat="server" onclick="btnNuevo_Click" 
            Text="Nuevo" />
        <asp:Button ID="btnConsultar" runat="server" onclick="btnConsultar_Click" 
            Text="Consultar" />
        <asp:Button ID="btnEliminar" runat="server" onclick="btnEliminar_Click" 
            Text="Eliminar" />
        <asp:Button ID="btnActualizar" runat="server" onclick="btnActualizar_Click" 
            Text="Actualizar" />
        <asp:Button ID="bntSalir" runat="server" onclick="bntSalir_Click" 
            Text="Salir" />
        <asp:Panel ID="tablePanel" runat="server" Visible="False">
            <table ID="Tabla" style="width: 86%;">
                <tr>
                    <td align="right">
                        ID</td>
                    <td>
                        <asp:TextBox ID="txtID" runat="server" ReadOnly="True" Width="204px"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                    <td align="right">
                        Docente</td>
                    <td>
                        <asp:DropDownList ID="dlDocente" runat="server" Height="17px" Width="159px">
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        Especialidad</td>
                    <td>
                        <asp:DropDownList ID="dlEspecialidad" runat="server" Height="16px" 
                            Width="201px">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Button ID="btnOkEspecialidad" runat="server" 
                            onclick="btnOkEspecialidad_Click" Text="Ok" />
                    </td>
                    <td align="right">
                        Plan</td>
                    <td>
                        <asp:DropDownList ID="dlPlan" runat="server" Height="16px" Width="159px">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:Button ID="btnOkPlan" runat="server" onclick="btnOkPlan_Click" Text="Ok" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        Materia</td>
                    <td>
                        <asp:DropDownList ID="dlMateria" runat="server" Height="16px" Width="199px">
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;</td>
                    <td align="right">
                        Año</td>
                    <td>
                        <asp:TextBox ID="txtAnio" runat="server" Width="156px"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td align="right">
                        Comision</td>
                    <td>
                        <asp:DropDownList ID="dlComision" runat="server" Height="17px" Width="201px">
                        </asp:DropDownList>
                    </td>
                    <td>
                        &nbsp;</td>
                    <td align="right">
                        Cupo</td>
                    <td>
                        <asp:TextBox ID="txtCupo" runat="server" Width="153px"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:Button ID="btnAceptar" runat="server" onclick="btnAceptar_Click" 
                            Text="Aceptar" />
                    </td>
                    <td>
                        <asp:Button ID="btnSalir" runat="server" onclick="btnSalir_Click" 
                            Text="Salir" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <br />
    </asp:Panel>
    
    
</asp:Content>
